export default {
  state: {
    info: 'hello'
  },
  mutations: {
    updateInfo (state, payload) {
      state.info = payload
    }
  },
  actions: {
    updateInfo (context, payload) {
      setTimeout(() => {
        context.commit('updateInfo', payload)
      }, 1000)
    }
  },
  getters: {
    // 获取所有分类数据
    cates: state => state.cate.list
  }
}
